
<%@page import="AK.StuInfo.StudentList"%>
<%@page import="java.util.List"%>


<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>学生信息</title>

</head>

<body>
<%
	int id = Integer.valueOf(request.getParameter("id"));
	
	List sl = new ArrayList();

	String id1 = "";
	String name1 = "";
	String birth1 = "";
	String id2 = "";
	String name2 = "";
	String birth2 = "";
	String id3 = "";
	String name3 = "";
	String birth3 = "";
	String id4 = "";
	String name4 = "";
	String birth4 = "";
	switch (id) {
	case 1:
		id1 = "2012123123";
		name1 = "张三";
		birth1 = "1993-01-02";
		id2 = "2012896880";
		name2 = "李四";
		birth2 = "1994-11-11";
		id3 = "20121223423";
		name3 = "王五";
		birth3 = "1993-01-02";
		id4 = "2012823423442";
		name4 = "开溜";
		birth4 = "1994-11-11";
		break;
	}
	StudentList s1 = new StudentList();
	StudentList s2 = new StudentList();
	StudentList s3 = new StudentList();
	StudentList s4 = new StudentList();
	
	s1.setStuId(id1);
	s1.setName(name1);
	s1.setBirth(birth1);
	s2.setStuId(id2);
	s2.setName(name2);
	s2.setBirth(birth2);
	s3.setStuId(id3);
	s3.setName(name3);
	s3.setBirth(birth3);
	s4.setStuId(id4);
	s4.setName(name4);
	s4.setBirth(birth4);
	sl.add(s1);
	sl.add(s2);
	sl.add(s3);
	sl.add(s4);
%>
	<table>
		<tr>
		<td>学号</td>
		<td>姓名</td>
		<td>出生日期</td>
		</tr>
		<%
			for (int i = 0; i < sl.size(); i++) {
				StudentList stu = (StudentList)sl.get(i);
		%>
		<tr>
			<td><%=stu.getStuId()%></td>
			<td><%=stu.getName()%></td>
			<td><%=stu.getBirth()%></td>
		</tr>
		<%
			}
		%>
	</table>
</body>
</html>
